Ext.define('Fxt.cpct-account.view.Grid', {
    extend: 'Fxt.core.view.Grid',
    model: 'Fxt.cpct-account.Model',
    $selModel: 'MULTI',
    $audit: false,
    $newStore: function() {
        return Ext.create('Fxt.cpct-account.Store')
    },
    tbar: [
        {
            text: '新增',
            action: 'add',
            $url: '/cpct-account/save'
        }, {
            text: '编辑',
            action: 'edit',
            $url: '/cpct-account/save'
        }, {
            text: '新增一个邀请（测试用）',
            action: 'new-register'
        }
    ],
    columns: [{
        text: '邀请码',
        dataIndex: 'promotionCode'
    }, {
        text: '邀请链接',
        dataIndex: 'registerUrl'
    }, {
        text: '账号手机号',
        dataIndex: 'mobile'
    }, {
        text: '备注',
        dataIndex: 'note'
    }, {
        text: '邀请数',
        dataIndex: 'promotionQty'
    }, {
        text: '邀请数（已实名）',
        dataIndex: 'promotionAndHasIdCardQty'
    }, {
        text: '创建时间',
        dataIndex: 'insertTime'
    }]
});